package com.nice.nice201110.entity;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class TUser {

    private Integer id;

    @NotNull( message = "loginid cannot be null")
    private String loginid;
    @NotNull(message = "password cannot be null")
    private String password;

    @NotNull(message = "name cannot be null")
    private String name;
    private Integer ismanger;
    private Date date;
    private Integer statue;
    private Integer organizationid;

    @Override
    public String toString() {
        return "TUser{" +
                "id=" + id +
                ", loginid='" + loginid + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", ismanger=" + ismanger +
                ", date=" + date +
                ", statue=" + statue +
                ", organizationid=" + organizationid +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLoginid() {
        return loginid;
    }

    public void setLoginid(String loginid) {
        this.loginid = loginid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getIsmanger() {
        return ismanger;
    }

    public void setIsmanger(Integer ismanger) {
        this.ismanger = ismanger;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getStatue() {
        return statue;
    }

    public void setStatue(Integer statue) {
        this.statue = statue;
    }

    public Integer getOrganizationid() {
        return organizationid;
    }

    public void setOrganizationid(Integer organizationid) {
        this.organizationid = organizationid;
    }
}